package com.janlei.ioc;

public class InvokeStu {
}

class Client {

    String say(String msg) {
        return msg;
    }
}


class Father {

    private final String personMsg;
    public String name;
    public int age;
    int legacy;

    public Father(String personMsg, String name, int age, int legacy) {
        this.personMsg = personMsg;
        this.name = name;
        this.age = age;
        this.legacy = legacy;
    }

    private String getPersonMsg() {
        return personMsg;
    }

    public String getName() {
        return name;
    }

    int getAge() {
        return age;
    }

    protected int getLegacy() {
        return legacy;
    }
}

class Sun extends Father {

    public Sun(String personMsg, String name, int age, int legacy) {
        super(personMsg, name, age, legacy);
    }
}